package com.shared.model.etat;

import javax.persistence.Id;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.shared.model.Quittance;




public abstract class EtatQuittance implements IsSerializable{
	
	@Id protected Long key;
	
	/**
	 * @return the key
	 */
	public Long getKey() {
		return key;
	}

	/**
	 * @param key the key to set
	 */
	public void setKey(Long key) {
		this.key = key;
	}

	
	public abstract void valider(Quittance quittance);
	
	public abstract TypeEtatQuittance getTypeEtatQuittance();
	
	public String toString(){
		return getTypeEtatQuittance().label;
	}
	
	
}
